﻿using System;

namespace Common.Exceptions
{
    /// <summary>
    /// 自定义异常
    /// </summary>
    public class CustomException : Exception
    {
        public int Code { get; set; } = 500;

        public CustomException(string message) : base(message)
        {
        }

        public CustomException(string message, int code) : base(message)
        {
            Code = code;
        }
    }
}